﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
        x:Class="LASDesktop.ModuloInventario.VisorDeCuentasDeArticulos"
        Title="Window1" Height="450" Width="830" AllowsTransparency="True" 
        WindowStyle="None" Background="{x:Null}" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="SnapsToDevicePixels" Value="true"/>
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="MinHeight" Value="23"/>
            <Setter Property="MinWidth" Value="75"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border 
			        x:Name="Border"  
			        CornerRadius="2" 
			        BorderThickness="1"
			        Background="#FF0384C5"
			        BorderBrush="#FF0384C5">
                            <ContentPresenter 
			          Margin="2"
			          HorizontalAlignment="Center"
			          VerticalAlignment="Center"
			          RecognizesAccessKey="True"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsKeyboardFocused" Value="true">
                                <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
                            </Trigger>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
                            </Trigger>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
                                <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
                                <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
                                <Setter Property="Foreground" Value="#888888"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>

        <Grid>
			
		<Rectangle Fill="#FFBCBCBC" RadiusX="20" RadiusY="20" Margin="8" Stroke="#FF515454" StrokeThickness="3" d:IsLocked="True" />
		<Label Content="Por favor seleccione las cuentas que desee cambiar." FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="22" Height="36" Margin="32.5,47,275,0" x:Name="TextInstruction" VerticalAlignment="Top" d:LayoutOverrides="Height" />
        <Button Height="57.22" Margin="0,334.78,67.5,0"  VerticalAlignment="Top" Background="#FF0384C5" HorizontalAlignment="Right" Width="226.5" FontFamily="/LASDesktop;component/Fonts/#GeosansLight" FontSize="21.333" BorderBrush="{x:Null}" Foreground="White" Clip="M5.5,27.5 C5.5,16.454305 14.454305,7.5 25.5,7.5 L200,7.5 C211.04569,7.5 220,16.454305 220,27.5 L220,30.72 C220,41.765695 211.04569,50.72 200,50.72 L25.5,50.72 C14.454305,50.72 5.5,41.765695 5.5,30.72 z" Cursor="Hand" Content="Guardar Cambios" Click="Button_Click"/>
		<Image HorizontalAlignment="Right"  Margin="0,20,28.5,0" VerticalAlignment="Top"  Source="/LASDesktop;component/Graphics/Exit.png" Stretch="UniformToFill" Width="30" Height="30" Opacity="0.665" MouseLeftButtonUp="Close"/>
        <Label Content="Cuenta de Inventario:" Height="36"  Width="202" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="22" Margin="187.5,117,440.5,297" />
        <ComboBox x:Name="InputCuentaInventario" Height="23"  Width="166" Margin="455.5,126,208.5,301" >
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Codigo}" />
                            <TextBlock Text=" " />
                            <TextBlock Text="{Binding NombreCuenta}" />
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Label Content="Cuenta de Costo de Ventas:" Height="36" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="22" Margin="187.5,166,387.5,248" d:LayoutOverrides="HorizontalAlignment" />
        <ComboBox x:Name="InputCuentaCostodeVentas" Height="23"  Width="166" Margin="455.5,175,208.5,252">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Codigo}" />
                            <TextBlock Text=" " />
                            <TextBlock Text="{Binding NombreCuenta}" />
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Label Content="Cuenta de Ventas:" Height="36"  Width="202" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="22" Margin="187.5,264,440.5,150" />
        <ComboBox x:Name="InputCuentaVentas" Height="23"  Width="166" Margin="455.5,273,208.5,154" >
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Codigo}" />
                            <TextBlock Text=" " />
                            <TextBlock Text="{Binding NombreCuenta}" />
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </Grid>
</Window>
